package spring.boot.notes.jacquesh.event.project;
import spring.boot.notes.jacquesh.event.project.event.RainEvent;
import spring.boot.notes.jacquesh.event.project.event.SnowEvent;
import spring.boot.notes.jacquesh.event.project.listenters.RainEventListenter;
import spring.boot.notes.jacquesh.event.project.listenters.SnowEventListenter;
import spring.boot.notes.jacquesh.event.project.listenters.WeatherEventMultister;
public class Application {
	public static void main(String[] args) {
		WeatherEventMultister weatherEventMultister = new WeatherEventMultister();
		SnowEventListenter snowEventListenter = new SnowEventListenter();
		RainEventListenter rainEventListenter = new RainEventListenter();
		weatherEventMultister.addListenter(snowEventListenter);
		weatherEventMultister.addListenter(rainEventListenter);
		weatherEventMultister.multicastEvent(new SnowEvent());
		weatherEventMultister.multicastEvent(new RainEvent());
		weatherEventMultister.removeListenter(snowEventListenter);
		weatherEventMultister.multicastEvent(new SnowEvent());
		weatherEventMultister.multicastEvent(new RainEvent());
	}
}
